package com.hee.erp.modules.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hee.erp.modules.entity.BusCustomerBillingInfo;
import com.hee.erp.modules.mapper.BusCustomerBillingInfoMapper;
import com.hee.erp.modules.service.IBusCustomerBillingInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weizehong
 * @since 2022-04-16
 */
@Service
@Transactional
public class BusCustomerBillingInfoServiceImpl extends ServiceImpl<BusCustomerBillingInfoMapper, BusCustomerBillingInfo> implements IBusCustomerBillingInfoService {

    @Override
    public BusCustomerBillingInfo getByCustomerId(String customerId) {

        LambdaQueryWrapper<BusCustomerBillingInfo> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(BusCustomerBillingInfo::getCustomerId,customerId);
        return this.getOne(queryWrapper);

    }
}
